<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<link rel="stylesheet" href="../css/ui-box.css">
    <link rel="stylesheet" href="../css/ui-base.css">
    <link rel="stylesheet" href="../css/ui-color.css">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/img.css">

	<script src="../js/core/zy_control.js"></script>
    <script src="../js/core/zy_click.js"></script>
    <script src="../js/core/appframework.js"></script>
    <script src="../js/core/exif.js"></script>
    <script src="../js/upload.js"></script>
    <script src="../js/main.js"></script>
    <script src="../js/core.js"></script>
    <script src="../js/res.js"></script>

    <script src="../js/findjob.js"></script>

</head>
<body class="ub ub-ver"> 
	<div id="content" class="ub ub-f1 ub-ver">
	</div>
	
</body>
</html>
<script>
zy_init();
window.uexOnload = function(type){
    if (!type) {
    	Res.gnTitle({title:"工作详情",rightTitle:"<img src='../img/icon_plus.png' class='uw1 uh1'>", 
            rightFn:function(){
                var person = GetLS("newperson_detail");
                if(CurrentUser._id == person.from) 
                    return (CurrentUser.category==30?$alert("不能添加自己为好友"):$alertEn("You can't add you as a friend"));

                var length = CurrentUser.friends && CurrentUser.friends.length || 0;
                for(var i=0; i<length; i++) {
                    if(CurrentUser.friends[i].id == person.from)
                        return (CurrentUser.category==30?$alert("已经是好友了"):$alertEn("It is already your friend"));
                }
                var friend = {};
                friend.id = person.from;
                friend.remark = person.name;
                CurrentUser.friends.push(friend);
                $ajax({
                    url: "/user/upsert",
                    data: CurrentUser,
                    success: function(res) {
                        if(res.code)
                            return $alert(res.codemsg);
                         (CurrentUser.category==30?$alert("添加好友成功！"):$alertEn("add friends Successful!"));
                    }
                });     
            }   
        });
    	Add20ToHeader();
    	zy_con("content", "findjob_jobDetail_content.html", 0, $("#header").outerHeight(), $("#footer").outerHeight());
    }
     //隐藏滚动条
    uexWindow.setWindowScrollbarVisible(false);
}
</script>